package com.xiaoma.demo.service.impl;

import com.xiaoma.demo.domain.Teacher;
import com.xiaoma.demo.mapper.TeacherMapper;
import com.xiaoma.demo.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Description:
 *
 * @author: kaixiang Zhao
 * @date: 2020-10-07 19:24
 */

@Service
public class TeacherServiceImpl implements TeacherService {

    @Autowired
    private TeacherMapper teacherMapper;

    @Override
    public List<Teacher> testList() {
        return teacherMapper.testList();
    }

    @Override
    public Integer deleteById(Integer id) {
        return teacherMapper.deleteById(id);
    }
}
